using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TimeTableManagement.Entities
{
    /// <summary>
    /// 
    /// </summary>
    public class Tb_News
    {
        public Tb_News()
        {
            this.Tb_File = new List<Tb_File>();
        }

        public int id { get; set; }
        [Required]
        [Display(Name = "Title")]
        public string title { get; set; }
        [Display(Name = "Start")]
        public System.DateTime startdate { get; set; }
        [Display(Name = "End")]
        public System.DateTime enddate { get; set; }
        public int id_user { get; set; }
        [Display(Name = "Content")]
        [DataType(DataType.MultilineText)]
        [System.Web.Mvc.AllowHtml]
        [Required]
        public string content { get; set; }
        public string urlimage { get; set; }
        public Nullable<bool> status { get; set; }
        public int type { get; set; }
        [Display(Name = "Option")]
        public string option { get; set; }
        public virtual Tb_Config Tb_Config { get; set; }
        public virtual ICollection<Tb_File> Tb_File { get; set; }
    }
}

